###############################################################################
# Makefile for project 
###############################################################################

## General options
PROJECT = 
MCU = PIC18F4520
COMPILER = "CCS for PIC"
TARGET = Release
SHELL = C:\WINDOWS\system32\cmd.exe

## Tools general options
CCFLAGS=-J +DF +ES -P -Z +O8 +CC +EXPORT +FH
LDFLAGS=-J -D +ES -P -Z +O8 +CC +FH

## Processing Tools
CC=ccsc.exe
LD=ccsc.exe
#  C:/Users/ruben/Downloads/Major Project/Motor Setup V9/Proteus/PIC18F4520_1/Release.hex: TOOL=LD
#     C:/Users/ruben/Downloads/Major Project/Motor Setup V9/Proteus/PIC18F4520_1/./main.o: TOOL=CC
#        C:/Users/ruben/Downloads/Major Project/Motor Setup V9/Proteus/PIC18F4520_1/main.c

# Build tree:
all:	Release

Release:	Release.hex
	cp "Release.hex" "C:/Users/ruben/Downloads/Major Project/Motor Setup V9/Proteus/PIC18F4520_1.hex"

Release.hex:	main.o 
	$(LD) $(LDFLAGS)  LINK="Release.hex=main.o"

main.o:	main.c 
	$(CC) $(CCFLAGS)  "main.c"

# tidy - delete all temporary files which are not involved in the target generation
tidy:
	rm -rf ./Release.esym
	rm -rf ./Release.sym
	rm -rf ./Release.lst
	rm -rf Release.err
	rm -rf ./main.esym
	rm -rf ./main.osym
	rm -rf ./main.err

# cleanup - delete all generated files
clean:	tidy
	rm -rf Release.hex
	rm -rf main.o
